/*
 * @Author: mikey.zhaopeng 
 * @Date: 2018-12-19 21:44:42 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-12-19 21:50:15
 */
import 'package:flutter/material.dart';

class GradientTag extends StatelessWidget{
  
  final Color color;
  final String title;
  final Gradient gradient;
  GradientTag({Key key,this.color,this.title,this.gradient}):assert(title !=null),super(key:key);
  @override
  Widget build(BuildContext context){
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 12.0,vertical: 4.0),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(20.0),
        gradient: gradient
      ),
      child: Text(
        title,
        style:TextStyle(color:color,fontSize:10.0)
      ),
    );
  }
}